//
//  JPPayCell.m
//  DHJPHotel
//
//  Created by Apple on 2018/5/21.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import "JPPayCell.h"
@interface JPPayCell()
@property (weak, nonatomic) IBOutlet UIButton *payBUtton;

@end
@implementation JPPayCell
- (void)setModel:(JPPayMentModel *)model
{
    _model = model;
    
    [self.payBUtton setTitle:model.payment_name forState:UIControlStateNormal];

    
}
- (void)setTag:(NSInteger)tag
{
    self.payBUtton.tag = tag;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    

    [self.payBUtton addTarget:self action:@selector(payBUttonClick:) forControlEvents:UIControlEventTouchUpInside];
}
- (void)payBUttonClick:(UIButton *)sender
{
    [self.delegate payCell:self selectedPayMothed:sender];
}


@end
